<?php
$id=$_POST['id']; 
$sn=$_POST['sn'];
$nm=$_POST['nm'];
$cat=$_POST['cat'];
$size=$_POST['size'];
$price=$_POST['price'];
$manf=$_POST['manf'];
$status=$_POST['status'];
$photo=$_POST['photo'];

mysql_connect("localhost","root","");
mysql_select_db("abade");

$query=mysql_query("UPDATE items SET sn='$sn',name='$nm',category='$cat',size='$size',price='$price',manf='$manf',status='$status',photo='$photo' WHERE id=$id");
if($query){
	echo "Item Edited!";
}
else{
	
	echo "Unable to Edit Item" . mysql_error();
}
mysql_close();
?>
